<template>
    <div>
        <button @click="onChangejia">+</button>

        <div class="add">{{count}}</div>
        <button @click="onChangejian">-</button>
    </div>
</template>
<script>
import mixin from "../store/index"
export default {
    mixins:[mixin],//把一个对象使用混入到组件当中
    data() {
        return {
         
        }
    },
    
    methods: {
        onChangejia(){
           this.changeCount()
        },
        onChangejian(){
           this.Changejian()
        }
    },
}
</script>
<style lang="scss">
  
</style>